package de.casino.strategies;

import de.casino.AbstractStrategy;
import de.casino.Spin;

public class LowLoseStrategy extends AbstractStrategy {

   public LowLoseStrategy(int startMoney, int startBet, int tableLimit) {
      super(startMoney, startBet * 8, tableLimit);
   }

   protected void handleSpin(Spin s) {
      switch (s.getNumber()) {
      case 0:
      case 3:
      case 6:
      case 9:
      case 12:
         break;
      case 1:
      case 2:
      case 4:
      case 5:
      case 7:
      case 8:
      case 10:
      case 11:
         bankroll += 3;
         break;
      case 15:
      case 18:
      case 21:
      case 24:
      case 27:
      case 30:
      case 33:
      case 36:
         bankroll += 9;
         break;
      case 13:
      case 14:
      case 16:
      case 17:
      case 19:
      case 20:
      case 22:
      case 23:
      default:
         bankroll += 12;
      }
   }
}
